package com.issoft.studentresitor.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.issoft.studentresitor.domain.dto.UserDTO;
import com.issoft.studentresitor.domain.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    void insertUser(User user);


    User login(UserDTO userDTO);

    int updatePassword(UserDTO userDTO);

    List<User> queryNoUserIdStu();

    int updatePasswordByUserId(@Param("userId") Integer userId,@Param("password")  String s);
}
